# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=foolsm
pkgver=1.0.10
pkgrel=0
pkgdesc="Link Status Monitor"
url="https://lsm.foobar.fi/"
arch="all"
license="GPL-2.0-only"
makedepends="linux-headers"
options="!check" # No test suite availbe
subpackages="$pkgname-doc"
source="https://lsm.foobar.fi/download/foolsm-$pkgver.tar.gz
        fix-non-standard-macro.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
        make
}

package() {
	cd "$builddir"
        make install DESTDIR="$pkgdir" PREFIX=/usr
}

sha512sums="7437306cb2188446b31e23f01876a64aff7556797012b0cc83db57e328d71f2813d2f3771b2c6d22300fe0e5ba2eca3992d59c33c3984a7bcfe6a52d7b719657  foolsm-1.0.10.tar.gz
4a0c851b2ae534c365adcc5798b56fc91b1efe7d4bcad90df411e93d7a4a0c620d3e9efa26504de877059c481de207c58c468ea577025db2933fa111f5620077  fix-non-standard-macro.patch"
